import numpy as np
import matplotlib.pyplot as plt

a = []
b = []
c = []
uav_data = np.load('5 data_1.txt.npy')
a = uav_data[:,0]
b = uav_data[:,1]
c = uav_data[:,2]

plt.plot(np.arange(len(a)), a,color='#1f77b4', linestyle='-')
plt.plot(np.arange(len(b)), b,color='#7FFF00', linestyle='-')
plt.plot(np.arange(len(c)), c,color='#A020F0', linestyle='-')
plt.legend(["x","y","z"])
plt.xlabel('k')
plt.ylabel('position value of UAV5')
#plt.title('control inputs of velocity')
plt.title('control inputs of position')
plt.show()

